home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Tools - Objects / E.T.O. #4 Installer / Big Brother Install < prev    next >
Text File  |  1991-05-23  |  2KB  |  62 lines

  1. #    B I G  B R O T H E R   I N S T A L L A T I O N   S C R I P T
  2. #
  3. #    Copyright Apple Computer, Inc. 1991 - All rights reserved.
  4. #    
  5. #
  6. #    This script is used to install the Big Brother tools and Init
  7. #    from the E.T.O. #4 distribution compact disk into the MPW folder
  8. #    and System Folder on the destination hard disk. 
  9. #
  10. #    Options: None
  11. #
  12. #    This script makes use of the following Shell variables:
  13. #
  14. #    {CDVolume}        - the name of the CD Distribution volume
  15. #
  16. #    {Tools}            - path to the "Tools - Objects" folder
  17. #
  18. #    {SystemFolder}    - the path to the folder containing the currently active System
  19. #
  20. #    {DestVolume}    - the name of the volume from which the Installer was launched
  21. #
  22. #    {ToDir}            - the name of the MPW folder on the destination hard drive
  23.  
  24.  
  25. set    Source    "{CDVolume}{Tools}Macintosh Programmer’s Workshop:MPW PQR4:BigBrother:"
  26.  
  27. ###    First, copy the Big Brother Init into the System Folder
  28.  
  29. if "`Exists -f "{SystemFolder}BigBroINIT"`"
  30.     if "`Exists -f "{SystemFolder}BigBroINIT.OLD"`"
  31.         Delete -y "{SystemFolder}BigBroINIT.OLD"
  32.     End
  33.  
  34.     Rename "{SystemFolder}BigBroINIT" "{SystemFolder}BigBroINIT.OLD"
  35. End
  36.  
  37. Duplicate -y "{Source}BigBroINIT" "{SystemFolder}BigBroINIT"
  38.  
  39. ### Now copy the tools…
  40.  
  41. If Not "`Exists -d "{ToDir}"`"
  42.     Newfolder "{ToDir}"
  43. End
  44.  
  45. If Not "`Exists -d "{ToDir}:Tools"`"
  46.     Newfolder "{ToDir}:Tools"
  47. End
  48.  
  49. Duplicate -y "{Source}BigBrother" "{ToDir}:Tools:BigBrother"
  50. Duplicate -y "{Source}BBReporter" "{ToDir}:Tools:BBReporter"
  51.  
  52. ### and append the help file to the MPW help file
  53.  
  54. If "`Exists -f "{ToDir}:MPW.Help"`"
  55.     Catenate "{Source}BB.Help" >> "{ToDir}:MPW.Help"
  56. Else
  57.     Duplicate -y "{Source}BB.Help" "{ToDir}:BB.Help"
  58. End
  59.  
  60. ### th-th-th-that's all, folks
  61.  
  62. Exit 0